package io.e2x.testground.fruitstore.repo;

import io.e2x.testground.fruitstore.dal.entities.User;
import org.springframework.data.r2dbc.repository.Query;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

import java.math.BigInteger;
@Repository
public interface UserRepo extends ReactiveCrudRepository<User, Long> {
    Mono<User> findByPhone(String phone);

    Mono<User> findUserByUsername(String username);
}
